/**
 * Created by flove on 2017/5/4.
 */
$(function () {
    function loginAjax() {
        $(".btn-login").click(function () {
            var username=$("#email").val();
            var password=$("#password").val();

            $.ajax({
                type:"post",
                url:"",
                data:{
                    username:username,
                    password:password
                },
                dataType:"json",
                success:function (data) {
                    console.log(data);
                }
            })

        })
    }

    loginAjax();

});